package com.game.proxy
{
    import com.dusk.game.Logger;
    import com.dusk.util.UtilBase;
    
    public class ConfigProxy
    {
        public function ConfigProxy()
        {
            super();
        }
        
        protected var _config:Object;
        
        public function setConfigData(config:Object):void
        {
            _config = config;
        }
        
        public function getConfigBId(id:String):Object
        {
            if(!_config.hasOwnProperty(id))
            {
                Logger.logError("找不到配置项：" + id,this);
            }
            return UtilBase.clone(_config[id]);
        }
    }
}
